# if语句
cars = ['audi', 'bmw', 'suBaru', 'toYota']

for car in cars:
    if car == 'bmw':
        print(car.upper())
    else:
        print(car.title())

# 忽略大小写的比较，使用lower()或upper()实现
for car in cars:
    if car.lower() == 'bmw':
        print(car.upper())

# !=同上